<div class="row">
 <small>
 <div class="span3 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
 </div>

  <div class="span5">
<form action="/<*$controller*>/opadd" method="get"   name="form1" class="form-horizontal" onSubmit="return checkform()">       
<table class="table table-bordered  table-striped">
<tr><td>学校：</td><td><*$schoolname*></td></tr>
<tr><td>已购服务：</td><td><*$order.productname*>&nbsp;<*$order.start_time|date_format:"%Y-%m-%d" *>~<*$order.end_time|date_format:"%Y-%m-%d" *><*if $order.isopen_chunyu*>(含春雨)<*/if*></td></tr>
<tr><td>学生配额：</td><td><*$order.studentnum*></td></tr>
<tr><td>增加学生配额至：</td><td><input type="text"  placeholder=""  name="num" id="num"  ></td></tr>
<tr ><td colspan="2"></td></tr>
<input type="hidden" name="school_orderid" id="school_orderid"  value="<*$order.school_orderid*>"/>
<input type="hidden" name="order_num" id="order_num"  value="<*$order.studentnum*>"/>
<tr height="50"><td colspan="2"><input type="submit" class="btn btn-success"  value="确定"  >&nbsp;&nbsp;<button type="button" class="btn" onclick="history.back()">返回</button></td></tr>
</table>
</form>
   </div>
<script type="text/javascript">
function checkform(){
	var num=document.getElementById('num').value;
	var order_num=document.getElementById('order_num').value;
	if(parseInt(order_num)>parseInt(num)){
		alert('请填写大于已有配额的数字');
		return false;
	}	
	return true;
}
</script>   
</div>